package com.ruoyi.dataserver.controller;

import com.ruoyi.dataserver.utils.R;
import com.ruoyi.dataserver.service.ITubeAnalyzeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.Map;

/**
 * @ProjectName intelligent-city
 * @Package com.lab.dataserver.controller
 * @ClassName TopologyAnalyzeController
 * @Description 管阀分析控制器
 * @Company LAB
 * @Author wangw
 * @Date 2020/7/09 11:37
 * @UpdateUser
 * @UpdateDate
 * @UpdateRemark
 * @Version 1.0.0
 */
@RestController
@Slf4j
@RequestMapping("/tubeController")
public class TubeAnalyzeController {

    @Autowired
    private ITubeAnalyzeService tubeAnalyzeService;



    /**
     * @return
     * @Title 管阀分析接口
     * @Description
     * @author wangw
     * @date 2020/7/10 0010 10:57
     */
    @RequestMapping(value = "/analyze", method = RequestMethod.POST)
    public R tubeAnalyze(@RequestBody Map map) throws IOException {

        return R.ok(tubeAnalyzeService.tubeAnalyze(map));
    }
}
